using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TwoFourItem : MonoBehaviour
{
    public TwoFourType type;
    public int _index;
    public int state = 0, isGet = 0;
    // Start is called before the first frame update
    void Start()
    {
        GetComponentInChildren<Button>().onClick.AddListener(But);
    }

    // Update is called once per frame
    void Update()
    {

    }
    public void But()
    {
        if (state == 1 && isGet == 0)
        {
            isGet = 0;
            TwoPanel.Ins.MoneyNum += 100;
            transform.GetChild(0).transform.GetChild(1).gameObject.SetActive(true);
        }
    }
}
public enum TwoFourType
{
    横向,
    纵向,
}
